home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
LCLINT2.SPK
/
test
/
test_b
/
c
/
null5
< prev
next >
Wrap
Text File
|
1996-08-28
|
533b
|
37 lines
extern /*@truenull@*/ bool isnull(/*@null@*/ int *x);
extern /*@falsenull@*/ bool notnull(/*@null@*/ int *x);
extern /*@falsenull@*/ char badnull (/*@null@*/ int *x);
extern /*@falsenull@*/ bool worsenull (/*@null@*/ int *x, int t);
int g1 (/*@null@*/ int *y)
{
if (isnull (y))
{
return 0;
}
return *y;
}
int g2 (/*@null@*/ int *y)
{
if (notnull (y))
{
return 0;
}
else
{
return *y;
}
}
int g3 (/*@null@*/ int *y)
{
if (notnull (y))
{
return 0;
}
return *y;
}